package com.steven.treatment_case.base;

import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.steven.treatment_case.utils.SystemUtils;

import butterknife.ButterKnife;

public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SystemUtils.hideBottomMenu(this);
//        SystemUtils.hideNavigation();
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(intiLayout());
        ButterKnife.bind(this);
        initView();
    }

    public abstract int intiLayout();

    public abstract void initView();
}
